{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="mb-20" method="get" action="{:\\think\\Url::build('index/project/index')}">
        <input type="text" class="input-text" style="width:250px" placeholder="分组名称" name="pro_name"
               value="">
        <button type="submit" class="btn btn-success"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            <a class="btn btn-primary radius mr-5" href="javascript:;" onclick="layer_open('添加','{:\\think\\Url::build(\'index/project/add\')}')"><i class="Hui-iconfont">&#xe600;</i> 添加</a></span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <th width="200">项目名称</th>
            <th width="60">创建时间</th>
            <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>

        {volist name ="list" id ="val"}
            <tr class="text-c">
                <td>{$val.pro_name |high_light=$Request.param.pro_name }</td>
                <td>{$val.ctime | date = 'Y-m-d h:i:s' , ###}</td>
                <td class="f-14">
                    <a title="编辑" href="javascript:;" onclick="layer_open('编辑','{:\\think\\Url::build(\'index/project/edit\',[\'id\' => $val.id])}')" style="text-decoration:none" class="ml-5"><i class="Hui-iconfont">&#xe6df;</i></a> <a title="删除" href="javascript:;" onclick="del(this,'3','{:\\think\\Url::build(\'index/project/delete\',[\'id\' => $val.id])}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
                </td>
            </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page}</div>
</div>
{/block}
{block name='script'}
<script>
</script>
{/block}